package network.course3.Threadpool;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Station {
    private static final ExecutorService cachedThreadPool= Executors.newCachedThreadPool();
    public static int tick = 20;
    public static void main(String[] args) {


        for (int i = 0; i < 3; i++) {
            Window window=new Window("window-"+i);
            cachedThreadPool.execute(window);
        }

    }
}
